package lab02.test30;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        Set<Double> set = new HashSet<Double>();
        double sum = 0;

        System.out.println("请输入语数外成绩：");
        set.add(sc.nextDouble());
        set.add(sc.nextDouble());
        set.add(sc.nextDouble());

        for (Double s : set) {
            sum += s;
        }

        System.out.println("平均分是：" + sum / 3);
    }
}

